<template>
	<div>
		<el-tabs v-model="activeName" @tab-click="handleClick">
			<el-tab-pane label="用户详情" name="first">
				<div class="detailtabel">
					<div class="table_main">
						<table>
							<tbody>
								<tr>
									<th>编号</th>
									<td class="border-rt">{{tableData.userId}}</td>
									<th>钻石</th>
									<td style="color: rgb(245, 108, 108)">{{tablejifen ? `${tablejifen}元` : '0元'}}  <span style="color: #4f9dec;cursor:pointer;" @click="withdraw2()">充值</span></td>
									<th>金额</th>
									<td class="border-rt">{{tableData.mayMoney?tableData.mayMoney:0}}元</td>
								</tr>
								<tr>
									<th>创建时间</th>
									<td>{{tableData.createTime}}</td>
									<th>手机号</th>
									<td>{{tableData.phone ? tableData.phone : '未绑定'}}</td>
									<th>图像</th>
									<!-- <td class="border-rt"><img  :src="tableData.headImg ? tableData.headImg : 'https://admin.koudaidj.com/logo.png'"  width="80" height="80" /></td> -->
									<td class="border-rt"><img  :src="tableData.headImg" width="80" height="80" /></td>
								</tr>
								<tr>
									<th>微信昵称</th>
									<td>
										{{tableData.nickName?tableData.nickName:'未授权'}}
									</td>
									<th>登录名</th>
									<td>{{tableData.userName?tableData.userName:'未设置'}}</td>
									<th>微信号</th>
									<td>{{tableData.weChatId?tableData.weChatId:'未授权'}}</td>
								</tr>
								<tr>
									<th>金币</th>
									<td >{{tableData.jiFen}} <span style="color: #4f9dec;cursor:pointer;" @click="withdraw()">充值</span></td>
									<th>会员编号</th>
									<td>{{tableData.relationId?tableData.relationId:'未设置'}}</td>
									<th>邀请人</th>
									<td class="border-rt">{{tableData.invitation?tableData.invitation:'未设置'}}</td>
								</tr>
								<tr>
									<th>等级</th>
									<td>
										<span v-if="tableData.gradeIndex==0">游客</span>
										<span v-if="tableData.gradeIndex==null">游客</span>
										<span v-if="tableData.gradeIndex==1">v1团长</span>
										<span v-if="tableData.gradeIndex==2">v2团长</span>
										<span v-if="tableData.gradeIndex==3">v3团长</span>
										<span v-if="tableData.gradeIndex==4">v4团长</span>
										<span v-if="tableData.gradeIndex==5">v5团长</span>
										<span v-if="tableData.gradeIndex==6">v6团长</span>
										<span v-if="tableData.gradeIndex==7">v7团长</span>
									</td>
									<th>团队总人数</th>
									<td>{{myTeamCountTuan.count0}}人</td>
									<th>团队今日邀请</th>
									<td class="border-rt">{{myTeamCountTuan.count1}}人</td>
								</tr>
								<tr>
									<th>团队本月邀请</th>
									<td>{{myTeamCountTuan.count2}}人</td>
									<th>团队上月邀请</th>
									<td>{{myTeamCountTuan.count3}}人</td>
									<th>团队总收益</th>
									<td class="border-rt">{{myMoneyCountTuan?myMoneyCountTuan:0}}金币</td>
								</tr>
								<tr>
									<th>团队今日收益</th>
									<td>{{myMoneyTuan.sum1?myMoneyTuan.sum1:0}}金币</td>
									<th>团队本月收益</th>
									<td>{{myMoneyTuan.sum2?myMoneyTuan.sum2:0}}金币</td>
									<th>团队上月收益</th>
									<td class="border-rt">{{myMoneyTuan.sum3?myMoneyTuan.sum3:0}}金币</td>
								</tr>
								<tr>
									
									
									<th>总邀请</th>
									<td >{{myTeamCount.count0}}人</td>
									<th>今日邀请</th>
									<td >{{myTeamCount.count1}}人</td>
									<th>本月邀请</th>
									<td class="border-rt">{{myTeamCount.count2}}人</td>
								</tr>
								<tr>
									<th>昨日邀请</th>
									<td>{{myTeamCount.count3}}人</td>
									<th>总收益</th>
									<td>{{myMoneyCount.sum0}}金币</td>
									<th>今日收益</th>
									<td class="border-rt">{{myMoneyCount.sum1}}金币</td>
								</tr>
								<tr>
									<th>本月收益</th>
									<td>{{myMoneyCount.sum2}}金币</td>
									<th>上月收益</th>
									<td>{{myMoneyCount.sum3}}金币</td>
									<th>直属收益</th>
									<td class="border-rt">{{myMoneyCountZhi?myMoneyCountZhi:0}}金币</td>
								</tr>
								<tr>
									<th>非直属收益</th>
									<td>{{myMoneyCountFei?myMoneyCountFei:0}}金币</td>
									<th>微信openId</th>
									<td>{{tableData.openId}}</td>
									<th>是否虚拟用户</th>
									<td class="border-rt">
										<span v-if="tableData.isVirtualUser == 'true'">是</span>
										<span v-else>否</span>
									</td>
								</tr>
								<tr>
									<th class="border-bt">用户状态</th>
									<td class="border-rt border-bt">
										<span v-if="tableData.status == 1">正常</span>
										<span v-if="tableData.status == 2" style="color: #f56c6c;">禁用</span>
										<span style="color: #4f9dec;cursor:pointer;" @click="stateChange(tableData.id)">更改状态</span>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</el-tab-pane>
			<el-tab-pane label="团队成员" name="team">
				<el-table
				  v-loading="tableDataLoading"
				  :data="tableDataminTuan.content">
					<el-table-column
					  prop="userId"
					  label="编号">
					</el-table-column>
					<el-table-column
					  prop="headImg"
					  label="头像"
					  width="120">
					  <template slot-scope="scope">
						  <div v-if="scope.row.headImg == '' || scope.row.headImg == null">
							  <img src="~@/assets/img/avatar.png" alt="" width="60" height="60">
						  </div>
						  <div v-else>
							  <img :src="scope.row.headImg" alt="" width="60" height="60">
						  </div>
					  </template>
					</el-table-column>
				  <el-table-column
				    prop="userName"
				    label="登录名">
				    <template slot-scope="scope">
				      <span>{{scope.row.userName ? scope.row.userName : '未设置'}}</span>
				    </template>
				  </el-table-column>
					<el-table-column
					  prop="nickName"
					  label="微信昵称">
					  <template slot-scope="scope">
						<span>{{scope.row.nickName ? scope.row.nickName : '未授权'}}</span>
					  </template>
					</el-table-column>
					<el-table-column
						prop="relationId"
						label="会员编号"
						width="100">
						<template slot-scope="scope">
							<span>{{scope.row.isInvitation === 0 ? '未授权' : scope.row.relationId ? scope.row.relationId : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column
						prop="invitation"
						label="邀请人">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.invitation ? scope.row.invitation : '未设置'}}</span>
						</template>
					</el-table-column>
				  <el-table-column
				    prop="phone"
				    label="手机号"
					width="150">
				    <template slot-scope="scope">
				      <span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.phone ? scope.row.phone : '未绑定'}}</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="weChatId"
				    label="微信号"
				  width="150">
				    <template slot-scope="scope">
				      <span>{{scope.row.weChatId ? scope.row.weChatId : '未授权'}}</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="userXiaJiCount"
				    label="邀请人数">
				    <template slot-scope="scope">
				      <span>{{scope.row.userXiaJiCount ? scope.row.userXiaJiCount : 0}}人</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="sumMoney"
				    label="今日收益">
				    <template slot-scope="scope">
				      <span>{{scope.row.dayMoney ? scope.row.dayMoney : 0}}金币</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="sumMoney"
				    label="累计收益">
				    <template slot-scope="scope">
				      <span>{{scope.row.sumMoney ? scope.row.sumMoney : 0}}金币</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="createTime"
				    label="注册时间">
				  </el-table-column>
				  <el-table-column
				    prop="money"
				    label="钻石">
				  </el-table-column>
				  <el-table-column
				    prop="jiFen"
				    label="金币">
				  </el-table-column>
				<el-table-column
				  fixed='right'
				  prop="status "
				  label="状态">
				  <template slot-scope="scope">
					<el-switch
					  v-model="scope.row.status"
					  @change="change(scope.row.status,scope.row.id)"
					  :active-value="openValue"
					  :inactive-value="closeValue"
					  active-color="#13ce66"
					  inactive-color="#ff4949">
					</el-switch>
				  </template>
				</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChangeZhi"
				    @current-change="handleCurrentChangeZhi"
				    :page-sizes="[5, 10, 15, 20]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="tableDataminTuan.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>	
			<el-tab-pane label="直属成员" name="second">
				<el-table
				  v-loading="tableDataLoading"
				  :data="tableDataminZhi.content">
					<el-table-column
					  prop="userId"
					  label="编号">
					</el-table-column>
					<el-table-column
					  prop="headImg"
					  label="头像"
					  width="120">
					  <template slot-scope="scope">
						  <div v-if="scope.row.headImg == '' || scope.row.headImg == null">
							  <img src="~@/assets/img/avatar.png" alt="" width="60" height="60">
						  </div>
						  <div v-else>
							  <img :src="scope.row.headImg" alt="" width="60" height="60">
						  </div>
					  </template>
					</el-table-column>
				  <el-table-column
				    prop="userName"
				    label="登录名">
				    <template slot-scope="scope">
				      <span>{{scope.row.userName ? scope.row.userName : '未设置'}}</span>
				    </template>
				  </el-table-column>
					<el-table-column
					  prop="nickName"
					  label="微信昵称">
					  <template slot-scope="scope">
						<span>{{scope.row.nickName ? scope.row.nickName : '未授权'}}</span>
					  </template>
					</el-table-column>
					<el-table-column
						prop="relationId"
						label="会员编号"
						width="100">
						<template slot-scope="scope">
							<span>{{scope.row.isInvitation === 0 ? '未授权' : scope.row.relationId ? scope.row.relationId : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column
						prop="invitation"
						label="邀请人">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.invitation ? scope.row.invitation : '未设置'}}</span>
						</template>
					</el-table-column>
				  <el-table-column
				    prop="phone"
				    label="手机号"
					width="150">
				    <template slot-scope="scope">
				      <span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.phone ? scope.row.phone : '未绑定'}}</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="weChatId"
				    label="微信号"
				  width="150">
				    <template slot-scope="scope">
				      <span>{{scope.row.weChatId ? scope.row.weChatId : '未授权'}}</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="userXiaJiCount"
				    label="邀请人数">
				    <template slot-scope="scope">
				      <span>{{scope.row.userXiaJiCount ? scope.row.userXiaJiCount : 0}}人</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="sumMoney"
				    label="今日收益">
				    <template slot-scope="scope">
				      <span>{{scope.row.dayMoney ? scope.row.dayMoney : 0}}金币</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="sumMoney"
				    label="累计收益">
				    <template slot-scope="scope">
				      <span>{{scope.row.sumMoney ? scope.row.sumMoney : 0}}金币</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="createTime"
				    label="注册时间">
				  </el-table-column>
				  <el-table-column
				    prop="money"
				    label="钻石">
				  </el-table-column>
				  <el-table-column
				    prop="jiFen"
				    label="金币">
				  </el-table-column>
				<el-table-column
				  fixed='right'
				  prop="status "
				  label="状态">
				  <template slot-scope="scope">
					<el-switch
					  v-model="scope.row.status"
					  @change="change(scope.row.status,scope.row.id)"
					  :active-value="openValue"
					  :inactive-value="closeValue"
					  active-color="#13ce66"
					  inactive-color="#ff4949">
					</el-switch>
				  </template>
				</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChangeZhi"
				    @current-change="handleCurrentChangeZhi"
				    :page-sizes="[5, 10, 15, 20]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="tableDataminZhi.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="非直属成员" name="seconds">
				<el-table
				  v-loading="tableDataLoading"
				  :data="tableDataminFei.content">
					<el-table-column
					  prop="userId"
					  label="编号">
					</el-table-column>
					<el-table-column
					  prop="headImg"
					  label="头像"
					  width="120">
					  <template slot-scope="scope">
						  <div v-if="scope.row.headImg == '' || scope.row.headImg == null">
							  <img src="~@/assets/img/avatar.png" alt="" width="60" height="60">
						  </div>
						  <div v-else>
							  <img :src="scope.row.headImg" alt="" width="60" height="60">
						  </div>
					  </template>
					</el-table-column>
				  <el-table-column
				    prop="userName"
				    label="登录名">
				    <template slot-scope="scope">
				      <span>{{scope.row.userName ? scope.row.userName : '未设置'}}</span>
				    </template>
				  </el-table-column>
					<el-table-column
					  prop="nickName"
					  label="微信昵称">
					  <template slot-scope="scope">
						<span>{{scope.row.nickName ? scope.row.nickName : '未授权'}}</span>
					  </template>
					</el-table-column>
					<el-table-column
						prop="relationId"
						label="会员编号"
						width="100">
						<template slot-scope="scope">
							<span>{{scope.row.isInvitation === 0 ? '未授权' : scope.row.relationId ? scope.row.relationId : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column
						prop="invitation"
						label="邀请人">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.invitation ? scope.row.invitation : '未设置'}}</span>
						</template>
					</el-table-column>
				  <el-table-column
				    prop="phone"
				    label="手机号"
					width="150">
				    <template slot-scope="scope">
				      <span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.phone ? scope.row.phone : '未绑定'}}</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="weChatId"
				    label="微信号"
				  width="150">
				    <template slot-scope="scope">
				      <span>{{scope.row.weChatId ? scope.row.weChatId : '未授权'}}</span>
				    </template>
				  </el-table-column>
				  <el-table-column
					prop="userXiaJiCount"
					label="邀请人数">
					<template slot-scope="scope">
					  <span>{{scope.row.userXiaJiCount ? scope.row.userXiaJiCount : 0}}人</span>
					</template>
				  </el-table-column>
				  <el-table-column
				    prop="sumMoney"
				    label="今日收益">
				    <template slot-scope="scope">
				      <span>{{scope.row.dayMoney ? scope.row.dayMoney : 0}}金币</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="sumMoney"
				    label="累计收益">
				    <template slot-scope="scope">
				      <span>{{scope.row.sumMoney ? scope.row.sumMoney : 0}}金币</span>
				    </template>
				  </el-table-column>
				  <el-table-column
				    prop="createTime"
				    label="注册时间">
				  </el-table-column>
				  <el-table-column
				    prop="money"
				    label="钻石">
				  </el-table-column>
				  <el-table-column
				    prop="jiFen"
				    label="金币">
				  </el-table-column>
				<el-table-column
				  fixed='right'
				  prop="status "
				  label="状态">
				  <template slot-scope="scope">
					<el-switch
					  v-model="scope.row.status"
					  @change="change(scope.row.status,scope.row.id)"
					  :active-value="openValue"
					  :inactive-value="closeValue"
					  active-color="#13ce66"
					  inactive-color="#ff4949">
					</el-switch>
				  </template>
				</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChangeFei"
				    @current-change="handleCurrentChangeFei"
				    :page-sizes="[5, 10, 15, 20]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="tableDataminFei.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="钻石明细" name="eighth">
				<div>
					<span>类型:</span>
					<el-select v-model="type" placeholder="请选择类型" style="width:150px;" @change="selectTrigger(type)">
						<el-option v-for="item in types" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>
				</div>
				<el-table
				v-loading="tableDataLoading"
				  :data="walletData.content">
				  <el-table-column
					prop="id"
					label="编号"
					width="100">
				  </el-table-column>
				  <el-table-column
					prop="title"
					label="标题">
				   </el-table-column>
				 <el-table-column
					prop="content"
					label="内容">
				  </el-table-column>
				  <el-table-column
						prop="type"
						label="类型">
						<template slot-scope="scope">
							<span v-if="scope.row.type == 1">充值</span>
							<span v-if="scope.row.type == 2">报名</span>
							<span v-if="scope.row.type == 3">结算</span>
							<span v-if="scope.row.type == 4">退还</span>
							<span v-if="scope.row.type == 6">转赠</span>
							<span v-if="scope.row.type == 7">接受转增</span>
							<span v-if="scope.row.type == 8">金币兑换钻石</span>
							<span v-if="scope.row.type == 9">钻石兑换金币</span>
						</template>
				   </el-table-column>
				  <el-table-column
					 prop="money"
					 label="数量">
					 <template slot-scope="scope">
						<span style="color: #f56c6c;">{{scope.row.money}}</span>
					 </template>
				   </el-table-column>
				  <el-table-column
					prop="createTime"
					label="创建时间"
					width="180">
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
					@size-change="handleSizeChange2"
					@current-change="handleCurrentChange2"
					:page-sizes="[10, 20, 30, 40]"
					:page-size="size"
					:current-page="page"
					layout="total,sizes, prev, pager, next"
					:total="walletData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="赛事报名" name="apply">
				<el-table
				v-loading="tableDataLoading"
				  :data="applyData.content">
				  <el-table-column
					prop="id"
					label="编号"
					width="50">
				  </el-table-column>
				  <el-table-column
						prop="title"
						label="赛事标题">
				   </el-table-column>
				   <el-table-column
					prop="gameTypeName"
					label="游戏分类">
				    </el-table-column>
					<el-table-column
						prop="nickName"
						label="游戏昵称">
					 </el-table-column>
					 <el-table-column
					 	prop="gameNumber"
					 	label="账号">
						<template slot-scope="scope">
							<span v-if="scope.row.area == 1">微信号:{{scope.row.gameNumber}}</span>
							<span v-if="scope.row.area == 2">QQ号:{{scope.row.gameNumber}}</span>
						</template>
					  </el-table-column>
				   <el-table-column
					prop="entryMoney"
					label="报名费用">
				    </el-table-column>
				   <el-table-column
					prop="area"
					label="区域">
					<template slot-scope="scope">
						<span v-if="scope.row.area == 1">微信区</span>
						<span v-if="scope.row.area == 2">QQ区</span>
					</template>
				  </el-table-column>
				  <el-table-column
						prop="tag"
						label="标签">
				   </el-table-column>
				   <el-table-column
						prop="eventStatus"
						label="状态">
						<template slot-scope="scope">
							<span v-if="scope.row.eventStatus == 1">未开始</span>
							<span v-if="scope.row.eventStatus == 2">进行中</span>
							<span v-if="scope.row.eventStatus == 3">已结束</span>
							<span v-if="scope.row.eventStatus == 4">已解散</span>
							<span v-if="scope.row.eventStatus == 5">已取消</span>
						</template>
				    </el-table-column>
				  <el-table-column
					prop="createTime"
					label="报名时间"
					width="180">
				  </el-table-column>
				  <el-table-column
				  fixed="right"
				    label="操作"
				  width="120">
				    <template slot-scope="scope">
				      <el-button
				  	  v-if="scope.row.eventStatus == 1"
				        size="mini"
				        type="primary"
				        @click="cancel(scope.row)">取消报名
				      </el-button>
				  	<el-button
				  	  v-else
				  	  size="mini"
				  	  disabled
				  	  type="primary">取消报名
				  	</el-button>
				    </template>
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
					@size-change="handleSizeChange3"
					@current-change="handleCurrentChange3"
					:page-sizes="[10, 20, 30, 40]"
					:page-size="size"
					:current-page="page"
					layout="total,sizes, prev, pager, next"
					:total="applyData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="游戏账号" name="game">
				<el-table
				v-loading="tableDataLoading"
				  :data="gameData">
				   <el-table-column
						label="游戏分类">
						<template slot-scope="scope">
							<span>{{scope.row.gameType.name}}</span>
						</template>
					</el-table-column>
				   <el-table-column
						label="游戏图像">
						<template slot-scope="scope">
							<img :src="scope.row.gameType.img" alt="" width="40" height="40">
						</template>
					</el-table-column>
				   <el-table-column
					prop="area"
					label="区域">
					<template slot-scope="scope">
						<span v-if="scope.row.area == 1">微信区</span>
						<span v-if="scope.row.area == 2">QQ区</span>
					</template>
				  </el-table-column>
				  <el-table-column
					prop="status"
					label="绑定账号">
					<template slot-scope="scope">
						<span v-if="scope.row.status == 1">未绑定</span>
						<div v-if="scope.row.status == 2">游戏账号:{{scope.row.gameAccount.nickName}}</div>
						<div v-if="scope.row.status == 2">游戏编号:{{scope.row.gameAccount.gameNumber}}</div>
					</template>
				  </el-table-column>
				 <el-table-column
					prop="area1"
					label="区域">
					<template slot-scope="scope">
						<span v-if="scope.row.area1 == 1">微信区</span>
						<span v-if="scope.row.area1 == 2">QQ区</span>
					</template>
				 </el-table-column>
				 <el-table-column
					prop="status1"
					label="绑定账号">
					<template slot-scope="scope">
						<span v-if="scope.row.status1 == 1">未绑定</span>
						<div v-if="scope.row.status1 == 2">游戏账号:{{scope.row.gameAccount1.nickName}}</div>
						<div v-if="scope.row.status1 == 2">游戏编号:{{scope.row.gameAccount1.gameNumber}}</div>
					</template>
				 </el-table-column>
				</el-table>
			</el-tab-pane>
			<el-tab-pane label="我的评论" name="comment">
				<el-table
						v-loading="tableDataLoading"
				  :data="typeDatas.content"
						row-key="id">
				  <el-table-column
					 prop="id"
					 label="编号"
					 width="80">
				   </el-table-column>
						 <el-table-column
							prop="headImg"
							label="用户头像">
								<template slot-scope="scope">
									<img :src="scope.row.headImg" alt="" width="40" height="40">
								</template>
						  </el-table-column>
				 <el-table-column
					prop="userName"
					label="用户名">
				  </el-table-column>
						<el-table-column
							prop="content"
							label="评论内容">
						 </el-table-column>
				  <el-table-column
					prop="createTime"
					label="创建时间">
				  </el-table-column>
				  <el-table-column
				    label="操作"
					width="100">
				    <template slot-scope="scope">
				      <el-button
				        size="mini"
				        type="danger"
				        @click="deletes(scope.row)">删除
				      </el-button>
				    </template>
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChange"
				    @current-change="handleCurrentChange"
				    :page-sizes="[5, 10, 15, 20]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="typeDatas.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="金币明细" name="jifen">
				<el-table
				v-loading="tableDataLoading"
				  :data="integralData.content">
				<el-table-column
				  fixed
				 prop="id"
				 label="编号"
				 width="80">
				 </el-table-column>
				 <el-table-column
					prop="des"
					label="金币明细">
				  </el-table-column>
				  <el-table-column
					 label="金币"
					 width="80">
					 <template slot-scope="scope">
						<span style="color: #f56c6c;">{{scope.row.number}}</span>
					 </template>
				   </el-table-column>
				  <el-table-column
					prop="createAt"
					label="创建时间"
					width="180">
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
					@size-change="handleSizeChange8"
					@current-change="handleCurrentChange8"
					:page-sizes="[10, 15, 20, 25]"
					:page-size="size"
					:current-page="page"
					layout="total,sizes, prev, pager, next"
					:total="integralData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的战绩" name="stand">
				<div style="margin:2% 0;display: inline-block;">
					<span>游戏分类:</span>
					<el-select v-model="gameTypeId" placeholder="请选择类型" style="width:150px;" @change="standrefresh()">
					<el-option v-for="item in gameTypeIds" :key="item.value" :label="item.label" :value="item.value">
					</el-option>
					</el-select>
					<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="standrefresh">刷新</el-button>
				</div>
				<el-table
					v-loading="tableDataLoading"
				  :data="standData.content"
						row-key="id">
				  <el-table-column
					 prop="id"
					 label="编号"
					 width="80">
				   </el-table-column>
				   <el-table-column
				   prop="nickName"
				   label="赛事标题">
				   	<template slot-scope="scope">
				   		<span>{{scope.row.gameEvent.title}}</span>
				   	</template>
				    </el-table-column>
					<el-table-column
					prop="nickName"
					label="标签">
						<template slot-scope="scope">
							<span>{{scope.row.gameEvent.tag}}</span>
						</template>
					 </el-table-column>
					 <el-table-column
					   label="游戏分类">
					   <template slot-scope="scope">
					     <span style="color: #f56c6c;">{{scope.row.gameType.name ? scope.row.gameType.name : '未设置'}}</span>
					   </template>
					 </el-table-column>
					<el-table-column
					prop="nickName"
					label="游戏昵称">
						<template slot-scope="scope">
							<span>{{scope.row.gameApply.nickName}}</span>
						</template>
					 </el-table-column>
					 <el-table-column
					 prop="nickName"
					 label="游戏账号">
						<template slot-scope="scope">
							<span>{{scope.row.gameApply.gameNumber}}</span>
						</template>
					  </el-table-column>
					<el-table-column
						label="战绩">
							<template slot-scope="scope">

								<span v-if="scope.row.victory == 1">胜利</span>
								<span v-if="scope.row.victory == 2">失败</span>

								<div v-if="scope.row.gameApply.area == 2">
									<span>排名:{{scope.row.ranking}}</span>
								</div>
							</template>
						</el-table-column>
						<el-table-column
							label="排名">
								<template slot-scope="scope">
									<span>排名:{{scope.row.ranking}}</span>
								</template>
							</el-table-column>
						<el-table-column
						prop="killNumber"
						label="击杀数">
						</el-table-column>
				  <el-table-column
					prop="deathNumber"
					label="死亡数">
				  </el-table-column>
						<el-table-column
						prop="assistsNumber"
						label="助攻数"
						width="100">
						</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChange7"
				    @current-change="handleCurrentChange7"
				    :page-sizes="[10, 15, 20, 25]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="standData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的约战" name="wars">
				<div style="margin:2% 0;display: inline-block;">
					<span>状态:</span>
					<el-select v-model="eventStatus" placeholder="请选择类型" style="width:150px;" @change="statusWar()">
					<el-option v-for="item in eventStatusmain" :key="item.value" :label="item.label" :value="item.value">
					</el-option>
					</el-select>
					<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="warfresh">刷新</el-button>
				</div>
				<el-table
					v-loading="tableDataLoading"
				  :data="warData.content"
				  row-key="id">
					 <el-table-column
					 prop="gameTypeName"
					   label="游戏类型">
					 </el-table-column>
					<el-table-column
					 prop="area"
					 label="区域">
						<template slot-scope="scope">
							<span v-if="scope.row.area == 1">微信区</span>
							<span v-if="scope.row.area == 2">QQ区</span>
						</template>
					 </el-table-column>
					 <el-table-column
					 prop="title"
					 label="赛事标题">
					</el-table-column>
					<el-table-column
					 prop="tag"
					 label="标签">
					</el-table-column>
					<el-table-column
					 prop="entryMoney"
					 label="报名费">
					 <template slot-scope="scope">
					 	<span>{{scope.row.entryMoney}}钻</span>
					 </template>
					</el-table-column>
					<el-table-column
					 label="参赛人数">
					 <template slot-scope="scope">
					 	<span>{{scope.row.applyNumber}}/{{scope.row.needNumber}}</span>
					 </template>
					</el-table-column>
					<el-table-column
					 prop="eventStatus"
					 label="状态">
					 <template slot-scope="scope">
						 <span v-if="scope.row.eventStatus==1" style="color: #4f9dec;">约战中</span>
						 <span v-if="scope.row.eventStatus==2" style="color: #4f9dec;">进行中</span> 
						 <span v-if="scope.row.eventStatus==3" style="color: #999999;">已结束</span> 
						 <span v-if="scope.row.eventStatus==4" style="color: #999999;">已解散</span> 
					 </template>
					</el-table-column>
					<el-table-column
					 prop="startTime"
					 label="报名时间">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChangeWar"
				    @current-change="handleCurrentChangeWar"
				    :page-sizes="[10, 15, 20, 25]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="warData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的门票" name="ticket">
				<div style="margin:2% 0;display: inline-block;">
					<span>状态:</span>
					<el-select v-model="status" placeholder="请选择状态" style="width:150px;" @change="statusticket()">
					<el-option v-for="item in statusmain" :key="item.value" :label="item.label" :value="item.value">
					</el-option>
					</el-select>
					<span style="margin-left: 15px;">门票类型:</span>
					<el-select v-model="ticketType" placeholder="请选择门票类型" style="width:150px;" @change="statusticket()">
					<el-option v-for="item in ticketTypes" :key="item.value" :label="item.label" :value="item.value">
					</el-option>
					</el-select>
					<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="ticketfresh">刷新</el-button>
					<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="ticketreset">重置</el-button>
				</div>
				<el-table
					v-loading="tableDataLoading"
				  :data="ticketData.content"
				  row-key="id">
					<el-table-column
					  prop="goodsId"
						label="编号">
					</el-table-column>
					<el-table-column
						prop="coverImg"
						label="门票图片">
							<template slot-scope="scope">
								<img :src="scope.row.coverImg" alt="" width="40" height="40">
							</template>
					 </el-table-column>
					 <el-table-column
					 prop="price"
					 label="门票价格">
					</el-table-column>
					<el-table-column
					 prop="title"
					 label="门票标题">
					</el-table-column>
					<el-table-column
					 prop="ticketType"
					 label="门票类型">
						<template slot-scope="scope">
							<span v-if="scope.row.ticketType == 1">初级</span>
							<span v-if="scope.row.ticketType == 2">中级</span>
							<span v-if="scope.row.ticketType == 3">高级</span>
							<span v-if="scope.row.ticketType == 4">vip</span>
							<span v-if="scope.row.ticketType == 5">1v1</span>
						</template>
					 </el-table-column>
					<el-table-column
					 prop="status"
					 label="状态">
						<template slot-scope="scope">
							<span v-if="scope.row.status == 1">未使用</span>
							<span v-if="scope.row.status == 2">已使用</span>
						</template>
					 </el-table-column>
					<el-table-column
					 prop="createTime"
					 label="创建时间">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChangeTicket"
				    @current-change="handleCurrentChangeTicket"
				    :page-sizes="[10, 15, 20, 25]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="ticketData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>	
			<el-tab-pane label="我的卡包" name="card">
				<el-table
					v-loading="tableDataLoading"
				  :data="cardData.content">
				   <el-table-column
				   prop="couponName"
				   label="优惠券名称">
				    </el-table-column>
					<el-table-column
					prop="lessMoney"
					label="优惠券面额">
					</el-table-column>
					<el-table-column
					prop="failureTime"
					label="有限期"
					width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChange5"
				    @current-change="handleCurrentChange5"
				    :page-sizes="[10, 15, 20, 25]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="cardData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的举报" name="report">
				<el-table
				v-loading="tableDataLoading"
				  :data="reportData.content"
						row-key="id">
				  <el-table-column
					 prop="id"
					 label="编号"
					 width="80">
				  </el-table-column>
					<el-table-column
						prop="img"
						label="举报截图">
							<template slot-scope="scope">
								<img :src="scope.row.img" alt="" width="40" height="40">
							</template>
					 </el-table-column>
						<el-table-column
						prop="content"
						label="举报原因"
						width="200">
						</el-table-column>
						<el-table-column
						prop="refundReason"
						label="驳回原因"
						width="200">
							<template slot-scope="scope">
								<span>{{scope.row.refundReason?scope.row.refundReason:'暂无'}}</span>
							</template>
						</el-table-column>
						<el-table-column
						 prop="reportNickName"
						 label="被举报人">
						 </el-table-column>
						 <el-table-column
						  prop="reportPhone"
						  label="被举报人电话"
						  width="160">
						</el-table-column>
						  <el-table-column
							prop="createTime"
							label="举报时间"
								width="160">
						  </el-table-column>
						<el-table-column
						fixed="right"
						   prop="status"
						   label="状态">
						   <template slot-scope="scope">
						   		<span v-if="scope.row.status == 1">待处理</span>
								<span v-if="scope.row.status == 2">已驳回</span>
								<span v-if="scope.row.status == 3">已处理</span>
								<span v-if="scope.row.status == 4">已封禁</span>
						   	</template>
						</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
				    @size-change="handleSizeChange6"
				    @current-change="handleCurrentChange6"
				    :page-sizes="[10, 15, 20, 25]"
				    :page-size="size"
				    :current-page="page"
				    layout="total,sizes, prev, pager, next"
				    :total="reportData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="提现记录" name="tixian">
				<el-table
				v-loading="tableDataLoading"
				  :data="withdrawData">
				<el-table-column
				  fixed
				 prop="id"
				 label="编号"
				 width="80">
				 </el-table-column>
				 <el-table-column
					prop="zhifubao"
					label="支付宝账号">
				  </el-table-column>
				  <el-table-column
					 prop="zhifubaoName"
					 label="支付宝名称">
				   </el-table-column>
				  <el-table-column
					prop="money"
					label="提现金额">
					<template slot-scope="scope">
						<span style="color: #f56c6c;">{{scope.row.money}}</span>
					</template>
				  </el-table-column>
				  <el-table-column
					prop="orderNumber"
					label="付款编号">
				  </el-table-column>
				  <el-table-column
					prop="createAt"
					label="创建时间">
				  </el-table-column>
				  <el-table-column
					prop="outAt"
					label="结束时间">
				  </el-table-column>
				</el-table>
			</el-tab-pane>
			<el-tab-pane label="钱包明细" name="eighths">
				<el-table
				v-loading="tableDataLoading"
				  :data="walletData2.content">
				  <el-table-column
					prop="id"
					label="编号"
					width="50">
				  </el-table-column>
				  <el-table-column
					prop="title"
					label="标题"
					width="200">
				   </el-table-column>
				 <el-table-column
					prop="content"
					label="内容">
				  </el-table-column>
				  <el-table-column
					 prop="money"
					 label="金额"
					 width="100">
					 <template slot-scope="scope">
						<span style="color: #f56c6c;">{{scope.row.money}}</span>
					 </template>
				   </el-table-column>
				  <el-table-column
					prop="createTime"
					label="创建时间"
					width="180">
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
					@size-change="handleSizeChange12"
					@current-change="handleCurrentChange12"
					:page-sizes="[10, 20, 30, 40]"
					:page-size="size"
					:current-page="page"
					layout="total,sizes, prev, pager, next"
					:total="walletData2.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的订单" name="order">
				<el-table
				 v-loading="tableDataLoading"
				   :data="orderData.content">
				  <el-table-column
				   fixed
				   prop="img"
				   label="商品图片">
				   <template slot-scope="scope">
				     <img :src="scope.row.img" alt="" width="60" height="60">
				   </template>
				   </el-table-column>
				   <el-table-column
				    prop="title"
				    label="商品标题"
				    width="200">
				    </el-table-column>
				<el-table-column
				 prop="detailJson"
				 label="商品规格">
				 <template slot-scope="scope">
				  <span>{{scope.row.detailJson ? scope.row.detailJson : '无'}}</span>
				 </template>
				 </el-table-column>
				    <el-table-column
				     prop="number"
				     label="商品个数">
				     </el-table-column>
				   <el-table-column
				    prop="descrition"
				    label="订单备注">
				    <template slot-scope="scope">
				     <span>{{scope.row.descrition ? scope.row.descrition : '未填写'}}</span>
				    </template>
				   </el-table-column>
				   <el-table-column
				    label="订单类型">
				    <template slot-scope="scope">
				     <span v-if="scope.row.orderType == 1">普通订单</span>
				     <span v-if="scope.row.orderType == 2">拼团订单</span>
				     <span v-if="scope.row.orderType == 3">秒杀订单</span>
				 <span v-if="scope.row.orderType == 4">金币订单</span>
				    </template>
				   </el-table-column>
				    <el-table-column
				   prop="orderNum"
				   label="订单号"
				   width="200">
				   <template slot-scope="scope">
				     <span >{{scope.row.orderNum}}</span>
				   </template>
				   </el-table-column>
				   <el-table-column
				   prop="consignee"
				   label="收货人"
				   width="120">
				   </el-table-column>
				   <el-table-column
				   prop="mobile"
				   label="手机号"
				   width="120">
				   </el-table-column>
				   <el-table-column
				   prop="detail"
				   label="详细地址"
				   width="120">
					<template slot-scope="scope">
						<span>{{scope.row.provinces}}{{scope.row.detail}}</span>
					</template>
				   </el-table-column>
				   <el-table-column
				    prop="price"
				    label="商品价格">
				    <template slot-scope="scope">
				     <span style="color: #f56c6c;">{{scope.row.price | numFilter}}</span>
				    </template>
				    </el-table-column>
				   <el-table-column
				   prop="payMoney"
				   label="支付金额"
				   width="120">
				   <template slot-scope="scope">
				     <span style="color: #f56c6c;cursor:pointer;">{{scope.row.payMoney | numFilter}}</span>
				   </template>
				   </el-table-column>
				   <el-table-column
				   prop="refund"
				   label="退款原因"
				   width="160">
				   <template slot-scope="scope">
				     <span>{{scope.row.refund ? scope.row.refund : '未退款'}}</span>
				   </template>
				   </el-table-column>
				   <el-table-column
				   prop="refusedRefund"
				   label="驳回原因"
				   width="160">
				   <template slot-scope="scope">
				     <span>{{scope.row.refusedRefund ? scope.row.refusedRefund : '未拒绝'}}</span>
				   </template>
				   </el-table-column>
				   <el-table-column
				     fixed="right"
				   prop="status"
				   label="订单状态">
				   <template slot-scope="scope">
				     <span style="color: #4f9dec;" v-if="scope.row.status === 1 ">待付款</span>
				     <span style="color: #4f9dec;" v-if="scope.row.status === 2 ">待发货</span>
				     <span style="color: #999999;" v-if="scope.row.status === 3 ">已发货 </span>
				     <span style="color: #999999;" v-if="scope.row.status === 4 ">已收货</span>
				     <span style="color: #999999;" v-if="scope.row.status === 5 ">已取消</span>
				     <span style="color: #4f9dec;" v-if="scope.row.status === 6 ">退款中</span>
				     <span style="color: #999999;" v-if="scope.row.status === 7 ">已退款</span>
				     <span style="color: #999999;" v-if="scope.row.status === 8 ">已驳回</span>
				     <span style="color: #999999;" v-if="scope.row.status === 9 ">拼团中</span>
				     <span style="color: #999999;" v-if="scope.row.status === 10 ">已评价</span>
				   </template>
				   </el-table-column>
				   <el-table-column
				     prop="createAt"
				     label="创建时间"
				     width="160">
				   </el-table-column>
				   <el-table-column
				     prop="payTime"
				     label="付款时间"
				     width="160">
				     <template slot-scope="scope">
				       <span>{{scope.row.payTime ? scope.row.payTime : '未付款'}}</span>
				     </template>
				   </el-table-column>
				   <el-table-column
				     prop="finishTime"
				     label="收货时间"
				     width="160">
				     <template slot-scope="scope">
				       <span>{{scope.row.finishTime ? scope.row.finishTime : '未收货'}}</span>
				     </template>
				   </el-table-column>
				   <el-table-column
				     fixed="right"
				     label="操作"
				     width="100">
				     <template slot-scope="scope">
				       <el-button
				           size="mini"
				           type="primary"
				           @click="orderDetails(scope.row.id)">订单详情
				       </el-button>
				     </template>
				   </el-table-column>
				 </el-table>
				 <div style="text-align: center;margin-top: 10px;">
				   <el-pagination
				   @size-change="handleSizeChange1"
				   @current-change="handleCurrentChange1"
				   :page-sizes="[5, 10, 15, 20]"
				   :page-size="size"
				   :current-page="page"
				   layout="total,sizes, prev, pager, next"
				   :total="orderData.totalElements">
				   </el-pagination>
				 </div>
			</el-tab-pane>
			<el-tab-pane label="会员充值记录" name="payMember">
				<el-table
				v-loading="tableDataLoading"
				  :data="userData.content">
				<el-table-column
				 prop="id"
				 label="编号"
				 width="80">
				</el-table-column>
				<el-table-column
				  label="充值方式">
				 <template slot-scope="scope">
				   <span v-if="scope.row.classify == 3">微信支付</span>
				   <span v-if="scope.row.classify == 4">支付宝支付</span>
				  </template>
				</el-table-column>
			    <el-table-column
					prop="money"
					label="金额"
					width="280">
				  </el-table-column>
				  <el-table-column
					prop="createTime"
					label="支付时间"
					width="160">
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
					@size-change="handleSizeChange10"
					@current-change="handleCurrentChange10"
					:page-sizes="[5, 10, 15, 20]"
					:page-size="size"
					:current-page="page"
					layout="total,sizes, prev, pager, next"
					:total="userData.totalElements">
				  </el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="会员分佣" name="memberRate">
				  <div style="margin:2% 0;display: inline-block;">
					<span>佣金类型:</span>
					<el-select v-model="classifys" placeholder="请选择类型" style="width:150px;" @change="standrefresh2()">
					<el-option v-for="item in classifyss" :key="item.value" :label="item.label" :value="item.value">
					</el-option>
					</el-select>
					<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="standrefresh2">刷新</el-button>
				  </div>
					<el-table
					v-loading="tableDataLoading"
					  :data="userData.content">
					<el-table-column
					 prop="id"
					 label="编号"
					 width="80">
					 </el-table-column>
					 <el-table-column
						prop="userName"
						label="用户名称">
					  </el-table-column>
				  <el-table-column
					 label="分佣类型">
					 <template slot-scope="scope">
					  <span v-if="scope.row.classify == 1">团长</span>
					  <span v-if="scope.row.classify == 2">直属</span>
					  <span v-if="scope.row.classify == 3">非直属</span>
					 </template>
					</el-table-column>
					  <el-table-column
						prop="money"
						label="金额"
						width="280">
					  </el-table-column>
					  <el-table-column
						prop="createTime"
						label="收益时间">
					  </el-table-column>
					</el-table>
					<div style="text-align: center;margin-top: 10px;">
					  <el-pagination
						@size-change="handleSizeChange11"
						@current-change="handleCurrentChange11"
						:page-sizes="[5, 10, 15, 20]"
						:page-size="size"
						:current-page="page"
						layout="total,sizes, prev, pager, next"
						:total="userData.totalElements">
					  </el-pagination>
					</div>
				</el-tab-pane>
			<el-tab-pane label="消息推送" name="tenth">
				<div style="float: right;margin-right:2%;">
					<el-button style='margin: 10px 0;' size="mini" type="primary" icon="document" @click="magNotice">消息推送</el-button>
				</div>
				<el-table
				v-loading="tableDataLoading"
				  :data="userData.content">
				<el-table-column
				 prop="id"
				 label="编号"
				 width="80">
				 </el-table-column>
				 <!-- <el-table-column
					prop="userName"
					label="用户名称">
				  </el-table-column> -->
				  <el-table-column
					 prop="title"
					 label="消息标题">
				   </el-table-column>
				  <el-table-column
					prop="content"
					label="消息内容"
					width="280">
				  </el-table-column>
				  <el-table-column
					prop="createAt"
					label="创建时间">
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
				  <el-pagination
					@size-change="handleSizeChange9"
					@current-change="handleCurrentChange9"
					:page-sizes="[5, 10, 15, 20]"
					:page-size="size"
					:current-page="page"
					layout="total,sizes, prev, pager, next"
					:total="userData.totalElements">
				  </el-pagination>
				</div>
				<!-- 消息推送 -->
				<el-dialog title="消息推送" :visible.sync="dialogFormVisible2" center>
					<div style="margin-bottom: 10px;">
						<span style="width: 200px;display: inline-block;text-align: right;">消息标题：</span>
						<el-input style="width: 50%;" v-model="title" placeholder="请输入消息标题"></el-input>
					</div>
					<div style="margin-bottom: 10px;">
						<span style="width: 200px;display: inline-block;text-align: right;position: relative;top: -65px;">消息内容：</span>
						<el-input style="width: 50%;" type="textarea" rows="4" v-model="content" placeholder="请输入消息内容"></el-input>
					</div>
					<div slot="footer" class="dialog-footer">
						<el-button @click="dialogFormVisible2 = false">取 消</el-button>
						<el-button type="primary" @click="magNoticeTo()">确 定</el-button>
					</div>
				</el-dialog>
			</el-tab-pane>
		</el-tabs>
		<!-- 金币充值 -->
		<el-dialog title="金币充值" :visible.sync="dialogFormVisible" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">金币：</span>
				<el-input style="width:50%;" v-model="jiFen" placeholder="请输入金币"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisible = false">取 消</el-button>
				<el-button type="primary" @click="jifenNoticeTo()">确 定</el-button>
			</div>
		</el-dialog>
		<!-- 钻石充值 -->
		<el-dialog title="钻石充值" :visible.sync="dialogFormVisible1" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">钻石：</span>
				<el-input style="width:50%;" v-model="money" placeholder="请输入钻石"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisible1 = false">取 消</el-button>
				<el-button type="primary" @click="zuanNoticeTo()">确 定</el-button>
			</div>
		</el-dialog>
		<!-- 修改资料 -->
		<el-dialog title="修改信息" :visible.sync="dialogFormVisible3" center>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">手机号：</span>
				<el-input style="width:50%;" v-model="phone" placeholder="请输入手机号"></el-input>
			</div>
			<div style="margin-bottom: 10px;">
				<span style="width: 200px;display: inline-block;text-align: right;">密码：</span>
				<el-input style="width:50%;" v-model="password" type="password" placeholder="请输入新密码"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="dialogFormVisible3 = false">取 消</el-button>
				<el-button type="primary" @click="messageNoticeTo()">确 定</el-button>
			</div>
		</el-dialog>
	</div>
</template>

<script>
	export default {
	    data() {
	        return {
				openValue:1,
				closeValue:2,
				state:'false',
				size:10,
				page:1,
				userId:'',
				userclass:0,
				phone:'',
				password:'',
				totalnum:0,
				totalnum2:0,
				startTime:'',
				endTime:'',
				moneyFrom:0,
				flag:1,
				content:'',
				title:'',
				status:0,
				eventStatus:0,
				jiFen:'',
				money:'',
				ticketData:[],
				myTeamCountTuan:{},
				orderData:[],
				withdrawData:[],
				tableDataminZhi:[],
				tableDataminFei:[],
				tableDataminTuan:[],
				applyData:[],
				typeDatas:[],
				gameData:[],
				integralData:[],
				gameEventId:'',
				gameApplyId:'',
				gameTypeId:'',
				gameTypeIds:[],
				userData:[],
				standData:[],
				cardData:[],
				reportData:[],
				myTeamCount:{},
				myMoneyCount:{},
				myMoneyTuan:{},
				myMoneyCountZhi:'',
				myMoneyCountFei:'',
				myMoneyCountTuan:'',
				goodsId:'',
				type:1,
				info: {
				  stockDate: this.getNowTime(),  //日期
				},
				info2: {
				  stockDate2: this.getNowTime2(),  //日期
				},
				type:0,
				types:[
				   {
					   label:'全部',
					   value:0
				   },
				   {
					   label:'充值',
					   value:1
				   },
				   {
					   label:'报名',
					   value:2
				   },
				   {
					   label:'结算',
					   value:3
				   },
				   {
					   label:'退还',
					   value:4
				   },
				   {
					   label:'转赠',
					   value:6
				   },
				   {
					   label:'接受转赠',
					   value:7
				   },
				   {
					   label:'金币兑换钻石',
					   value:8
				   },
				   {
					   label:'钻石兑换金币',
					   value:9
				   },
				   {
					   label:'购买门票',
					   value:11
				   }
				],
				classifys:'',
				classifyss:[
				   {
					   label:'全部',
					   value:''
				   },
				   {
					   label:'团长',
					   value:1
				   },
				   {
					   label:'直属',
					   value:2
				   },
				   {
						label:'非直属',
						value:3			   
				   }
				],
				ticketType:0,
				ticketTypes:[
					{
					   label:'全部',
					   value:0
					},
					{
					   label:'初级',
					   value:1
					},
					{
					   label:'中级',
					   value:2
					},
					{
					   label:'高级',
					   value:3
					},
					{
					   label:'vip',
					   value:4
					},
					{
					   label:'1v1',
					   value:5
					}
				],
				statusmain:[
					{
					   label:'全部',
					   value:0
					},
					{
					   label:'未使用',
					   value:1
					},
					{
					   label:'已使用',
					   value:2
					}
				],
				eventStatus:0,
				eventStatusmain:[
					{
					   label:'全部',
					   value:0
					},
					{
					   label:'约战中',
					   value:1
					},
					{
					   label:'进行中',
					   value:2
					},
					{
						label:'已结束',
						value:3			   
					},
					{
						label:'已解散',
						value:4			   
					}
				],
				warData:[],
				dialogFormVisible:false,
				dialogFormVisible1:false,
				dialogFormVisible2:false,
				dialogFormVisible3:false,
				tablejifen:'',
				tableData:{},
				walletData:[],
				walletData2:[],
				activeName: 'first',
				tableDataLoading:true,
	      }
	    },
		filters: {
		  numFilter (value) {
		    let realVal = ''
		    if (!isNaN(value) && value!== '') {
		      // 截取当前数据到小数点后两位
		      realVal = parseFloat(value).toFixed(2)
		    } else {
		      realVal = '--'
		    }
		    return realVal
		  }
		},
	    methods: {
			// 详情
			orderDetails (id) {
			   this.$router.push({path: '/orderDetails', query: {id: id}})
			},
			// 状态
			change (val, id) {
			  this.$http({
			    url: this.$http.adornUrl2('/user/updateStatus'),
			    method: 'get',
			    params: this.$http.adornParams({
						  'id':id,
						  'status':val
					  })
			  }).then(({data}) => {
			    this.$message({
			      message: '操作成功',
			      type: 'success',
			      duration: 1500,
			      onClose: () => {
			        this.dataSelect()
			      }
			    })
			  })
			},
			// 金币充值
			withdraw(){
				this.dialogFormVisible = true
			},
			//我的团队邀请统计
			getTeamCounts(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myTeamCount'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myTeamCount=data.data
					  }
				  })
			},
			// 消息推送
			magNotice(){
				this.dialogFormVisible2 = true
			},
			// 消息推送
			magNoticeTo(){
				if (this.title == '') {
				    this.$notify({
				        title: '提示',
				        duration: 1800,
				        message: '请输入标题',
				        type: 'warning'
				    });
				    return
				}
				if (this.content == '') {
				    this.$notify({
				        title: '提示',
				        duration: 1800,
				        message: '请输入内容',
				        type: 'warning'
				    });
				    return
				}
				this.$http({
				  url: this.$http.adornUrl2('/cash/sendMsg'),
				  method: 'get',
				  params: this.$http.adornParams({
					  'title':this.title,
					  'content':this.content,
					  'phone' :this.phone,
					  'flag' : this.flag
				  })
				}).then(({data}) => {
				  this.dialogFormVisible2 = false
				  if(data.status == -100){
				    this.$message({
				      message: data.msg,
				      type: 'error',
				      duration: 1500,
				      onClose: () => {
				        this.title = ''
				        this.content = ''
				        this.userSelect()
				      }
				    })
				  }
				  if(data.status == 0){
				    this.$message({
				      message: '操作成功',
				      type: 'success',
				      duration: 1500,
				      onClose: () => {
				        this.title = ''
				        this.content = ''
				        this.userSelect()
				      }
				    })
				  }
				})
			},
			// 刷新
			ticketfresh(){
				this.ticketSelect()
			},
			// 重置
			ticketreset(){
				this.page = 1
				this.size = 5
				this.ticketType = 0
				this.status = 0
				this.ticketSelect()
			},
			statusticket(){
				this.ticketSelect()
			},
			//我的团队邀请统计
			getTeamCountsTuan(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myTeamCount'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
						'type':3
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myTeamCountTuan=data.data
					  }
				  })
			},
			// 详情跳转
			updates (row) {
				this.$router.push({path: '/userDetail', query: {userId: row.userId}})
			},
			//我的收益统计
			getInvtation(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myInvitation'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myMoneyCount=data.data
					  }
				  })
			},
			//团长收益统计
			getInvTuan(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myInvitation'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
						'type':3
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myMoneyTuan=data.data
					  }
				  })
			},
			//团队收益
			getInvtationTuan(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myInvitationSum'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
						'type':3
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myMoneyCountTuan=data.data
					  }
				  })

			},
			  //我的直属收益
			  getInvtationZhi(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myInvitationSum'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
					 'type':1
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myMoneyCountZhi=data.data
					  }
				  })

			  },
	
			  //我的非直属收益
			  getInvtationFei(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/myInvitationSum'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
					'type':2
					})
				  }).then(({data}) => {
					  if(data.status==0){
						 this.myMoneyCountFei=data.data
					  }
				  })
			  },
	
			// 金币充值
			jifenNoticeTo(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/addJiFen'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
						'jiFen':this.jiFen,
					})
				  }).then(({data}) => {
					  if(data.status==0){
						  this.$message({
						    message: '操作成功',
						    type: 'success',
						    duration: 1500,
						    onClose: () => {
							  this.jiFen = ''
							  this.dialogFormVisible = false
						      this.dataSelect()
						    }
						  })
					  }else{
						this.$message({
						  message: data.msg,
						  type: 'error',
						  duration: 1500,
						  onClose: () => {
							  this.jiFen = ''
							  this.dialogFormVisible = false
								this.dataSelect()
						  }
						})
					  }
				  })
			},
			// 钻石充值
			withdraw2(){
				this.dialogFormVisible1 = true
			},
			// 钻石充值
			zuanNoticeTo(){
				let userId = this.$route.query.userId
				 this.$http({
					url: this.$http.adornUrl2('/user/addMoney'),
					method: 'get',
					params: this.$http.adornParams({
						'id':userId,
						'money':this.money,
					})
				  }).then(({data}) => {
					  if(data.status==0){
						  this.$message({
						    message: '操作成功',
						    type: 'success',
						    duration: 1500,
						    onClose: () => {
							  this.money = ''
							  this.dialogFormVisible1 = false
						      this.dataSelect()
						    }
						  })
					  }else{
						 this.$message({
						   message: data.msg,
						   type: 'error',
						   duration: 1500,
						   onClose: () => {
							this.money = ''
							this.dialogFormVisible1 = false
						     this.dataSelect()
						   }
						 })
					  }
				  })
			},
			// 取消报名
			cancel(row){
				this.$confirm(`确定取消报名?`, '提示', {
				  confirmButtonText: '确定',
				  cancelButtonText: '取消',
				  type: 'warning'
				}).then(() => {
				  this.$http({
					url: this.$http.adornUrl2('/gameApply/cancelApply'),
					method: 'get',
					params: this.$http.adornParams({
						'id':row.id
					})
				  }).then(({data}) => {
					  if(data.status == 0){
						 this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
							  this.dataSelect()
							}
						 })
					  }else{
						  this.$message({
								message:data.msg,
								type: 'error',
								duration: 1500,
								onClose: () => {
								  this.dataSelect()
								}
						  })
					  }

				  })
				}).catch(() => {})
			},
			//处理默认选中当前日期
			getNowTime () {
			  var now = new Date()
			  var year = now.getFullYear() //得到年份
			  var month = now.getMonth() //得到月份
			  var date = now.getDate() //得到日期
			  month = month + 1
			  month = month.toString().padStart(2, '0')
			  date = date.toString().padStart(2, '0')
			  var defaultDate = `${year}-${month}-${date}`
			  return defaultDate
			  this.$set(this.info, 'stockDate', defaultDate)
			},
			//处理默认选中当前日期
			getNowTime2 () {
			  var now = new Date()
			  var year = now.getFullYear() //得到年份
			  var month = now.getMonth()-now.getMonth() //得到月份
			  var date = now.getDate()-now.getDate()+1 //得到日期
			  month = month + 1
			  month = month.toString().padStart(2, '0')
			  date = date.toString().padStart(2, '0')
			  var defaultDate = `${year}-${month}-${date}`
			  return defaultDate
			  this.$set(this.info, 'stockDate', defaultDate)
			},
			  // 详情跳转
			  updates (row) {
				this.$router.push({path: '/userDetail', query: {userId: row.userId}})
				this.dataSelect()

			  },
			// tabs切换
			handleClick(tab, event) {
				if(tab._props.label=='用户详情'){
					this.getTeamCounts()
					this.getInvtation()
					this.getInvtationZhi()
					this.getInvtationFei()
					this.dataSelect()
				}
				if(tab._props.label=='团队成员'){
					this.teamSelectTuan()
				}
				if(tab._props.label=='直属成员'){
					this.teamSelectZhi()
				}
				if(tab._props.label=='非直属成员'){
					this.teamSelectFei()
				}
				if(tab._props.label=='钻石明细'){
					this.walletSelect()
				}
				if(tab._props.label=='赛事报名'){
					this.applySelect()
				}
				if(tab._props.label=='游戏账号'){
					this.gameSelect()
				}
				if(tab._props.label=='我的评论'){
					this.dataSelect2()
				}
				if(tab._props.label=='金币明细'){
					this.integralSelect()
				}
				if(tab._props.label=='我的战绩'){
					this.standSelect()
					this.gameClass()
				}
				if(tab._props.label=='我的约战'){
					this.warSelect()
				}
				if(tab._props.label=='我的门票'){
					this.ticketSelect()
				}
				if(tab._props.label=='我的卡包'){
					this.cardSelect()
				}
				if(tab._props.label=='我的举报'){
					this.reportSelect()
				}
				if(tab._props.label=='我的订单'){
					this.orderSelect()
				}
				if(tab._props.label=='提现记录'){
					this.size = 10,
					this.page = 1,
					this.withdrawSelect()
				}
				if(tab._props.label=='钱包明细'){
					this.walletSelect2()
				}
				if(tab._props.label=='会员充值记录'){
				  this.size = 10,
				  this.page = 1,
					this.getUserPayMember()
				}
				if(tab._props.label=='会员分佣'){
				  this.size = 10,
				  this.page = 1,
				  
				  this.getMemberRate()
				}
				if(tab._props.label=='消息推送'){
					this.size = 10,
					this.page = 1,
					this.state = 5
					this.userSelect()
				}
			},
			handleSizeChange(val) {
			  this.size = val
			  this.dataSelect2()
			},
			handleCurrentChange(val) {
			  this.page = val
			  this.dataSelect2()
			},
			handleSizeChange1(val) {
			  this.size = val
			  this.orderSelect()
			},
			handleCurrentChange1(val) {
			  this.page = val
			  this.orderSelect()
			},
			handleSizeChange2(val) {
			  this.size = val
			  this.walletSelect()
			},
			handleCurrentChange2 (val) {
			  this.page = val
			  this.walletSelect()
			},
			handleSizeChange12(val) {
			  this.size = val
			  this.walletSelect2()
			},
			handleCurrentChange12 (val) {
			  this.page = val
			  this.walletSelect2()
			},
			handleSizeChange3(val) {
			  this.size = val
			  this.applySelect()
			},
			handleCurrentChange3(val) {
			  this.page = val
			  this.applySelect()
			},
			handleSizeChangeZhi(val) {
			  this.size = val
			  this.teamSelectZhi()
			},
			handleCurrentChangeZhi(val) {
			  this.page = val
			  this.teamSelectZhi()
			},

		  handleSizeChangeFei(val) {
			this.size = val
			this.teamSelectFei()
		  },
		  handleCurrentChangeFei(val) {
			this.page = val
			this.getInvtationFei()
		  },
			handleSizeChange4(val) {
			  this.size = val
			  this.teamSelect()
			},
			handleCurrentChange4(val) {
			  this.page = val
			  this.teamSelect()
			},
			handleSizeChange5(val) {
			  this.size = val
			  this.cardSelect()
			},
			handleCurrentChange5(val) {
			  this.page = val
			  this.cardSelect()
			},
			handleSizeChange6(val) {
			  this.size = val
			  this.reportSelect()
			},
			handleCurrentChange6(val) {
			  this.page = val
			  this.reportSelect()
			},
			handleSizeChange7(val) {
			  this.size = val
			  this.standSelect()
			},
			handleCurrentChange7(val) {
			  this.page = val
			  this.standSelect()
			},
			handleSizeChangeWar(val) {
			  this.size = val
			  this.warSelect()
			},
			handleCurrentChangeWar(val) {
			  this.page = val
			  this.warSelect()
			},
			handleSizeChangeTicket(val) {
			  this.size = val
			  this.ticketSelect()
			},
			handleCurrentChangeTicket(val) {
			  this.page = val
			  this.ticketSelect()
			},
			handleSizeChange8(val) {
			  this.size = val
			  this.integralSelect()
			},
			handleCurrentChange8(val) {
			  this.page = val
			  this.integralSelect()
			},
			handleSizeChange9(val) {
			  this.size = val
			  this.userSelect()
			},
			handleCurrentChange9(val) {
			  this.page = val
			   this.userSelect()
			},
			handleSizeChange10(val) {
				this.size = val
				this.getUserPayMember()
			},
			handleCurrentChange10(val) {
			this.page = val
			 this.getUserPayMember()
			},
			handleSizeChange11(val) {
			  this.size = val
			  this.getMemberRate()
			},
			handleCurrentChange11(val) {
			  this.page = val
			   this.getMemberRate()
			},
			// 类型
			selectTrigger(){
				this.walletSelect()
			},
			// 获取评论数据
			dataSelect2 () {
			  let page = this.page - 1
			  let userId = this.$route.query.userId
			  this.tableDataLoading = true
			  this.$http({
				url: this.$http.adornUrl2('/ameComment/userList'),
				method: 'get',
				params: this.$http.adornParams({
					'page':page,
					'size':this.size,
					'userId':userId
				})
			  }).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.typeDatas = returnData
			  })
			},
			// 用户门票
			ticketSelect(){
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl2('/ticket/list'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId':userId,
						'ticketType':this.ticketType,
						'status':this.status
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.ticketData = returnData
				})
			},
			// 获取消息推送
			userSelect () {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/message/findType/${userId}/${this.state}/${this.page-1}/${this.size}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.userData  = returnData;
				})
			},
			// 删除评论
			deletes(row){
				this.$confirm(`确定删除此条信息?`, '提示', {
				  confirmButtonText: '确定',
				  cancelButtonText: '取消',
				  type: 'warning'
				}).then(() => {
				  this.$http({
					url: this.$http.adornUrl2('/ameComment/delete'),
					method: 'get',
					params: this.$http.adornParams({
						'id':row.id
					})
				  }).then(({data}) => {
					  this.$message({
						message: '删除成功',
						type: 'success',
						duration: 1500,
						onClose: () => {
						  this.dataSelect2()
						}
					  })
				  })
				}).catch(() => {})
			},
			// 会员充值记录
			getUserPayMember(){
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl2('/statistics/selectPayDetailsByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId':userId,
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.userData = returnData
				})
			},
			// 会员返佣
			getMemberRate(){
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl2('/memberDetails/selectMemberDetailsList'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId':userId,
							'classify':this.classifys,
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.userData = returnData
				})
			},
			// 获取用户提现记录
			withdrawSelect () {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/cash/list/${userId}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.withdrawData  = returnData;
				})
			},
			// 获取评论数据
			dataSelect () {
			  let page = this.page - 1
			  let gameVideoId = this.$route.query.gameVideoId
			  this.tableDataLoading = true
			  this.$http({
				url: this.$http.adornUrl2('/ameComment/list'),
				method: 'get',
				params: this.$http.adornParams({
					'page':page,
					'size':this.size,
					'gameVideoId':gameVideoId
				})
			  }).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.typeDatas = returnData
			  })
			},
			teamSelectTuan(){
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/user/myInvitationV1?page=${this.page-1}&size=${this.size}&id=${userId}&type=3`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					this.tableDataminTuan  = data.data;
				})	
			},
			// 获取直属团队成员
			teamSelectZhi () {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/user/find?id=${userId}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					if (data.status === 0) {
					let returnData = data.data;
					this.invitation = returnData.relationId
					let userId = this.$route.query.userId
					this.$http({
						url: this.$http.adornUrl2(`/user/myInvitationV1?page=${this.page-1}&size=${this.size}&id=${userId}&type=1`),
						method: 'get',
						params: this.$http.adornParams({
						})
					}).then(({data}) => {
						/* if(this.page==1){
							this.tableDataminZhi=[]
						} */
						this.tableDataLoading = false
            this.tableDataminZhi  = data.data;

						/* data.data.content.forEach(d=>{
							this.tableDatamin.push(d)
						}) */

					})
					}
				})
			},
			// 获取非直属团队成员
			teamSelectFei () {

				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/user/find?id=${userId}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					if (data.status === 0) {
					let returnData = data.data;
					this.invitation = returnData.relationId
					this.$http({
						url: this.$http.adornUrl2(`/user/myInvitationV1?page=${this.page-1}&size=${this.size}&id=${userId}&type=2`),
						method: 'get',
						params: this.$http.adornParams({
						})
					}).then(({data}) => {
						this.tableDataLoading = false
						let returnData = data.data;
						this.tableDataminFei  = returnData;
					})
					}
				})
			},
			// 我的卡包
			cardSelect(){
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/selfCouponUser/userList?page=${this.page-1}&size=${this.size}&userId=${userId}&goodsId=${this.goodsId}&type=${this.type}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.cardData = returnData;
				})
			},
			// 我的举报
			reportSelect(){
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/userReport/userList?page=${this.page-1}&size=${this.size}&userId=${userId}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.reportData = returnData;
				})
			},
			// 我的订单
			orderSelect(){
				this.tableDataLoading = true
				this.status = 0
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/orders/findMyList?page=${this.page-1}&size=${this.size}&userId=${userId}&status=${this.status}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.orderData  = returnData;
				})
			},
			// 获取金币明细
			integralSelect () {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/userInfo/getUserJifenList/${userId}/${this.page-1}/${this.size}`),
					method: 'post',
					data: this.$http.adornData({
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.integralData  = returnData;
				})
			},
			// 更改状态
			stateChange(id){
				this.$confirm(`确定要更改用户状态吗?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl2(`/user/updateStatus?id=${id}`),
						method: 'get',
						params: this.$http.adornData({
						})
					}).then(({data}) => {
						this.$message({
						message: '修改成功',
						type: 'success',
						duration: 1500,
						onClose: () => {
							this.dataSelect()
						}
						})
					})
				}).catch(() => {})
			},
			// 赛事报名
			applySelect(){
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				let page = this.page - 1
				this.$http({
					url: this.$http.adornUrl2('/gameApply/userList'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId':userId,
						'eventStatus':this.eventStatus
					})
				}).then(({data}) => {
					if (data.status === 0) {
						let returnData = data.data;
						this.applyData = returnData;
						this.tableDataLoading = false
					}
				})
			},
			// 用户战绩
			warSelect(){
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl2('/gameEvent/userPKList'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId':userId,
						'eventStatus':this.eventStatus
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.warData = returnData
				})
			},
			// 游戏账号
			gameSelect(){
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2('/gameAccount/list'),
					method: 'get',
					params: this.$http.adornParams({
						'userId':userId,
					})
				}).then(({data}) => {
					if (data.status === 0) {
						let returnData = data.data;
						this.gameData = returnData;
						this.tableDataLoading = false
					}
				})
			},
			standrefresh(){
				this.standSelect()
			},
			standrefresh2(){
				this.getMemberRate()
			},
			// 刷新
			warfresh(){
				this.warSelect()
			},
			// 用户战绩
			standSelect(){
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl2('/gameRecord/list'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'gameEventId':this.gameEventId,
						'gameTypeId':this.gameTypeId,
						'userId':userId,
						'gameApplyId':this.gameApplyId
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.standData = returnData
				})
			},
			// 获取游戏分类
			gameClass(){
					this.$http({
					  url: this.$http.adornUrl2('/gameType/result'),
					  method: 'get',
					  params: this.$http.adornParams({
					  })
					}).then(({data}) => {
					  this.tableDataLoading = false
					  let returnData = data.data
					  this.gameTypeIds = returnData
					})
			},
			// 获取数据列表
			dataSelect () {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2(`/user/find?id=${userId}`),
					method: 'get',
					params: this.$http.adornParams({
					})
				}).then(({data}) => {
					if (data.status === 0) {
					let returnData = data.data;
					this.tableData = returnData;
					this.phone = returnData.phone
					this.tablejifen = Math.floor(returnData.money)
					}
				})
			},
			// 获取钱包明细
			walletSelect () {
				this.tableDataLoading = true
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2('/userMoney/userList'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId' :userId,
						'type':this.type
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.walletData  = returnData
				})
			},
			// 获取钱包明细
			walletSelect2 () {
				this.tableDataLoading = true
				let page = this.page - 1
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl2('/userMoney/userLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page':page,
						'size':this.size,
						'userId' :userId,
						'type':this.type
					})
				}).then(({data}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.walletData2  = returnData
				})
			}
	    },
		activated () {
			this.getInvtationZhi()
			this.getInvtationFei()
			this.getInvtationTuan()
			this.getTeamCountsTuan()
			this.getInvTuan()
			this.dataSelect()
			this.getTeamCounts()
			this.getInvtation()
		}
	}
</script>

<style scoped="scoped">
	.detailtabel h2{
		margin-top: 0;
	}
	.detailtabel .table_main table{
		width: 100%;
	}
	.detailtabel .table_main{
		border: 1px solid #e8e8e8;
	}
	.detailtabel table tr{
		border-bottom: 1px solid #e8e8e8;
	}
	.detailtabel table tr th{
		background-color: #fafafa;
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}
	.detailtabel table tr td{
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}
	.detailtabel table th{
		color: rgba(0,0,0,.85);
		font-weight: 400;
		font-size: 14px;
	    line-height: 1.5;
	}
	.border-rt{border-right: none!important;}
	.border-bt{border-bottom: none!important;}
	.table_main tr td.border-rt{
		width: 20%;
	}
</style>
